import Home from './home';
import Nav from './nav'
import { Button } from 'antd';
import SiderDemo from './TableComponent'

import {BrowserRouter as Router,Route,Link} from "react-router-dom";

function App() {
  const nav1 = [ '学习','公司','北京' ]
  const nav2 = [ 'Web','Java','Python' ]
  return (
    <div className="App">
      <h1>Hello React!</h1>
      {/* <Home /> */}
      {/* <Nav nav={ nav1 } title="目标导航" />
      <Nav nav={ nav2 } title="学习导航" /> */}
      {/* <Button type='primary' > Button </Button> */}

    {/* <Router>
      <div>
          <Route exact path="/" component={Home} />          
          <Route exact path="/news" component={Nav} />
      </div>
    </Router> */}
      <SiderDemo />
    </div>
  );
}

export default App;
